package J250404;

import java.io.File;
import java.io.IOException;

public class IO1 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test.txt");
        String absolutePath = file.getAbsolutePath();
        System.out.println("absolutePath = " + absolutePath);
        String canonicalPath = file.getCanonicalPath();
        System.out.println("canonicalPath = " + canonicalPath);
        String path = file.getPath();
        System.out.println("path = " + path);
        String name = file.getName();
        System.out.println("name = " + name);
        String parent = file.getParent();
        System.out.println("parent = " + parent);
    }
}
